package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FBudgetMapper;
import com.ruoyi.system.domain.FBudget;
import com.ruoyi.system.service.IFBudgetService;

/**
 * 预算Service业务层处理
 * 
 * @author qi
 * @date 2024-05-08
 */
@Service
public class FBudgetServiceImpl implements IFBudgetService 
{
    @Autowired
    private FBudgetMapper fBudgetMapper;

    /**
     * 查询预算
     * 
     * @param fBudgetid 预算主键
     * @return 预算
     */
    @Override
    public FBudget selectFBudgetByFBudgetid(Long fBudgetid)
    {
        return fBudgetMapper.selectFBudgetByFBudgetid(fBudgetid);
    }

    /**
     * 查询预算列表
     * 
     * @param fBudget 预算
     * @return 预算
     */
    @Override
    public List<FBudget> selectFBudgetList(FBudget fBudget)
    {
        return fBudgetMapper.selectFBudgetList(fBudget);
    }

    /**
     * 新增预算
     * 
     * @param fBudget 预算
     * @return 结果
     */
    @Override
    public int insertFBudget(FBudget fBudget)
    {
        return fBudgetMapper.insertFBudget(fBudget);
    }

    /**
     * 修改预算
     * 
     * @param fBudget 预算
     * @return 结果
     */
    @Override
    public int updateFBudget(FBudget fBudget)
    {
        return fBudgetMapper.updateFBudget(fBudget);
    }

    /**
     * 批量删除预算
     * 
     * @param fBudgetids 需要删除的预算主键
     * @return 结果
     */
    @Override
    public int deleteFBudgetByFBudgetids(Long[] fBudgetids)
    {
        return fBudgetMapper.deleteFBudgetByFBudgetids(fBudgetids);
    }

    /**
     * 删除预算信息
     * 
     * @param fBudgetid 预算主键
     * @return 结果
     */
    @Override
    public int deleteFBudgetByFBudgetid(Long fBudgetid)
    {
        return fBudgetMapper.deleteFBudgetByFBudgetid(fBudgetid);
    }
}
